//
//  TCCalendarHeaderView.m
//  TCCalendarSelector
//
//  Created by 叮叮 on 2021/5/8.
//

#import "TCCalendarHeaderView.h"

@implementation TCCalendarHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
    textLabel.textAlignment = NSTextAlignmentCenter;
    textLabel.textColor = UIColor.blackColor;
    textLabel.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:textLabel];
    _textLabel = textLabel;
}
@end
